[INFO] cloning repository https://github.com/BHouwens/cryptofun
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/BHouwens/cryptofun" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBHouwens%2Fcryptofun", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBHouwens%2Fcryptofun'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 54315949c892a3154c65cb05ce636aae67f0406d
[INFO] checking BHouwens/cryptofun against try#72f88fc4e9458f89516a0b8b0868f3718aec5b47 for pr-74989
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBHouwens%2Fcryptofun" "/workspace/builds/worker-1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/BHouwens/cryptofun on toolchain 72f88fc4e9458f89516a0b8b0868f3718aec5b47
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+72f88fc4e9458f89516a0b8b0868f3718aec5b47" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/BHouwens/cryptofun
[INFO] finished tweaking git repo https://github.com/BHouwens/cryptofun
[INFO] tweaked toml for git repo https://github.com/BHouwens/cryptofun written to /workspace/builds/worker-1/source/Cargo.toml
[INFO] crate git repo https://github.com/BHouwens/cryptofun already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+72f88fc4e9458f89516a0b8b0868f3718aec5b47" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr] error: the lock file /workspace/builds/worker-1/source/Cargo.lock needs to be updated but --locked was passed to prevent this
[INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag.
[INFO] the lockfile is outdated, regenerating it
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+72f88fc4e9458f89516a0b8b0868f3718aec5b47" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }`
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+72f88fc4e9458f89516a0b8b0868f3718aec5b47" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded ieee754 v0.2.6
[INFO] [stderr]   Downloaded block-buffer v0.3.3
[INFO] [stderr]   Downloaded generic-array v0.9.0
[INFO] [stderr]   Downloaded digest v0.7.6
[INFO] [stderr]   Downloaded keccak v0.1.0
[INFO] [stderr]   Downloaded blake2 v0.7.1
[INFO] [stderr]   Downloaded bincode v1.3.1
[INFO] [stderr]   Downloaded hamming v0.1.3
[INFO] [stderr]   Downloaded rustc-cfg v0.2.0
[INFO] [stderr]   Downloaded sha3 v0.7.3
[INFO] [stderr]   Downloaded ramp v0.5.9
[INFO] [stderr]   Downloaded crypto-mac v0.5.2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+72f88fc4e9458f89516a0b8b0868f3718aec5b47" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] de4e54399c8ec5f4bd26997a8527bf596ba6482c487645ff626281b6dc6740ed
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "de4e54399c8ec5f4bd26997a8527bf596ba6482c487645ff626281b6dc6740ed", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "de4e54399c8ec5f4bd26997a8527bf596ba6482c487645ff626281b6dc6740ed", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "de4e54399c8ec5f4bd26997a8527bf596ba6482c487645ff626281b6dc6740ed", kill_on_drop: false }`
[INFO] [stdout] de4e54399c8ec5f4bd26997a8527bf596ba6482c487645ff626281b6dc6740ed
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+72f88fc4e9458f89516a0b8b0868f3718aec5b47" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 048218c52d5cf729af49fea29325823586d5df25413b784a5ae5237a0484bdbe
[INFO] running `Command { std: "docker" "start" "-a" "048218c52d5cf729af49fea29325823586d5df25413b784a5ae5237a0484bdbe", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v1.0.1
[INFO] [stderr]    Compiling libc v0.2.77
[INFO] [stderr]    Compiling rustc-serialize v0.3.24
[INFO] [stderr]    Compiling byteorder v1.3.4
[INFO] [stderr]     Checking rand_core v0.4.2
[INFO] [stderr]     Checking byte-tools v0.2.0
[INFO] [stderr]     Checking arrayref v0.3.6
[INFO] [stderr]     Checking constant_time_eq v0.1.5
[INFO] [stderr]     Checking hamming v0.1.3
[INFO] [stderr]     Checking ieee754 v0.2.6
[INFO] [stderr]     Checking generic-array v0.9.0
[INFO] [stderr]     Checking block-buffer v0.3.3
[INFO] [stderr]     Checking rand_core v0.3.1
[INFO] [stderr]     Checking digest v0.7.6
[INFO] [stderr]     Checking crypto-mac v0.5.2
[INFO] [stderr]     Checking blake2 v0.7.1
[INFO] [stderr]     Checking sha3 v0.7.3
[INFO] [stderr]    Compiling num-traits v0.2.12
[INFO] [stderr]    Compiling num-integer v0.1.43
[INFO] [stderr]     Checking base64 v0.6.0
[INFO] [stderr]     Checking bincode v1.3.1
[INFO] [stderr]    Compiling rand v0.4.6
[INFO] [stderr]     Checking rand v0.5.6
[INFO] [stderr]     Checking num-traits v0.1.43
[INFO] [stderr]     Checking rand v0.3.23
[INFO] [stderr]     Checking num-bigint v0.1.44
[INFO] [stderr]    Compiling ramp v0.5.9
[INFO] [stderr]     Checking cryptofun v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0432]: unresolved import `crate::utils::primes`
[INFO] [stdout]  --> src/key_exchange/diffie_hellman.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::utils::primes;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^ no `primes` in `utils`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `utils`
[INFO] [stdout]  --> src/key_exchange/ecdh.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use utils::ecc::{ ECPKeypair };
[INFO] [stdout]   |     ^^^^^ use of undeclared type or module `utils`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `utils`
[INFO] [stdout]  --> src/key_exchange/ecdh.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use utils::ecc_curves::{ ECPGroup, ECPPoint, ECPSupportedCurves, ECPCurveShape };
[INFO] [stdout]   |     ^^^^^ use of undeclared type or module `utils`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `utils`
[INFO] [stdout]  --> src/key_exchange/ecdh.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use utils::{ montgomery_ladder, comb_method };
[INFO] [stdout]   |     ^^^^^ help: a similar path exists: `crate::utils`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `use` statements changed in Rust 2018; read more at <https://doc.rust-lang.org/edition-guide/rust-2018/module-system/path-clarity.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `utils`
[INFO] [stdout]  --> src/utils/ecc.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use utils::encoding::{ EndianOrdering, biguint_to_bitvec, bitvec_to_biguint };
[INFO] [stdout]   |     ^^^^^ use of undeclared type or module `utils`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `utils`
[INFO] [stdout]  --> src/utils/ecc.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use utils::ecc_curves::{ ECPPoint, ECPGroup, ECPSupportedCurves, ECPCurveShape };
[INFO] [stdout]   |     ^^^^^ use of undeclared type or module `utils`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `utils`
[INFO] [stdout]  --> src/utils/ecc.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use utils::{ primes, comb_method, montgomery_ladder, jacobian_coords };
[INFO] [stdout]   |     ^^^^^ help: a similar path exists: `crate::utils`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `use` statements changed in Rust 2018; read more at <https://doc.rust-lang.org/edition-guide/rust-2018/module-system/path-clarity.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `crate::utils::primes`
[INFO] [stdout]  --> src/key_exchange/diffie_hellman.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::utils::primes;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^ no `primes` in `utils`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `utils`
[INFO] [stdout]  --> src/key_exchange/ecdh.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use utils::ecc::{ ECPKeypair };
[INFO] [stdout]   |     ^^^^^ use of undeclared type or module `utils`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `utils`
[INFO] [stdout]  --> src/key_exchange/ecdh.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use utils::ecc_curves::{ ECPGroup, ECPPoint, ECPSupportedCurves, ECPCurveShape };
[INFO] [stdout]   |     ^^^^^ use of undeclared type or module `utils`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `cryptopunk`
[INFO] [stdout]    --> src/key_exchange/diffie_hellman.rs:225:9
[INFO] [stdout]     |
[INFO] [stdout] 225 |     use cryptopunk::key_exchange::diffie_hellman::DiffieHellman;
[INFO] [stdout]     |         ^^^^^^^^^^ use of undeclared type or module `cryptopunk`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `cryptopunk`
[INFO] [stdout]   --> src/key_exchange/ecdh.rs:85:9
[INFO] [stdout]    |
[INFO] [stdout] 85 |     use cryptopunk::key_exchange::ecdh::ECDH;
[INFO] [stdout]    |         ^^^^^^^^^^ use of undeclared type or module `cryptopunk`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `utils`
[INFO] [stdout]   --> src/key_exchange/ecdh.rs:86:9
[INFO] [stdout]    |
[INFO] [stdout] 86 |     use utils::ecc_curves::ECPSupportedCurves;
[INFO] [stdout]    |         ^^^^^ use of undeclared type or module `utils`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `utils`
[INFO] [stdout]  --> src/key_exchange/ecdh.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use utils::{ montgomery_ladder, comb_method };
[INFO] [stdout]   |     ^^^^^ help: a similar path exists: `crate::utils`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `use` statements changed in Rust 2018; read more at <https://doc.rust-lang.org/edition-guide/rust-2018/module-system/path-clarity.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `utils`
[INFO] [stdout]  --> src/utils/ecc.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use utils::encoding::{ EndianOrdering, biguint_to_bitvec, bitvec_to_biguint };
[INFO] [stdout]   |     ^^^^^ use of undeclared type or module `utils`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `utils`
[INFO] [stdout]  --> src/utils/ecc.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use utils::ecc_curves::{ ECPPoint, ECPGroup, ECPSupportedCurves, ECPCurveShape };
[INFO] [stdout]   |     ^^^^^ use of undeclared type or module `utils`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `utils`
[INFO] [stdout]    --> src/utils/ecc.rs:309:9
[INFO] [stdout]     |
[INFO] [stdout] 309 |     use utils::ecc::ECPKeypair;
[INFO] [stdout]     |         ^^^^^ use of undeclared type or module `utils`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `utils`
[INFO] [stdout]    --> src/utils/ecc.rs:310:9
[INFO] [stdout]     |
[INFO] [stdout] 310 |     use utils::ecc_curves::ECPSupportedCurves;
[INFO] [stdout]     |         ^^^^^ use of undeclared type or module `utils`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `utils`
[INFO] [stdout]  --> src/utils/ecc.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use utils::{ primes, comb_method, montgomery_ladder, jacobian_coords };
[INFO] [stdout]   |     ^^^^^ help: a similar path exists: `crate::utils`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `use` statements changed in Rust 2018; read more at <https://doc.rust-lang.org/edition-guide/rust-2018/module-system/path-clarity.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]   --> src/key_exchange/ecdh.rs:52:13
[INFO] [stdout]    |
[INFO] [stdout] 52 |             ECPCurveShape::Montgomery => {
[INFO] [stdout]    |             ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]   --> src/key_exchange/ecdh.rs:55:13
[INFO] [stdout]    |
[INFO] [stdout] 55 |             ECPCurveShape::ShortWeierstrass => {
[INFO] [stdout]    |             ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPGroup`
[INFO] [stdout]   --> src/utils/ecc.rs:50:20
[INFO] [stdout]    |
[INFO] [stdout] 50 |             group: ECPGroup::new(curve),
[INFO] [stdout]    |                    ^^^^^^^^ use of undeclared type or module `ECPGroup`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPPoint`
[INFO] [stdout]   --> src/utils/ecc.rs:52:16
[INFO] [stdout]    |
[INFO] [stdout] 52 |             q: ECPPoint::new( &BigInt::zero(), Some(BigInt::zero()) )
[INFO] [stdout]    |                ^^^^^^^^ use of undeclared type or module `ECPPoint`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]   --> src/utils/ecc.rs:85:13
[INFO] [stdout]    |
[INFO] [stdout] 85 |             ECPCurveShape::Montgomery => montgomery_ladder::multiply(&self.group, &self.d, &p_point),
[INFO] [stdout]    |             ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]   --> src/utils/ecc.rs:86:13
[INFO] [stdout]    |
[INFO] [stdout] 86 |             ECPCurveShape::ShortWeierstrass => comb_method::multiply(&mut self.group, &self.d, &p_point, rng)
[INFO] [stdout]    |             ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]   --> src/key_exchange/ecdh.rs:52:13
[INFO] [stdout]    |
[INFO] [stdout] 52 |             ECPCurveShape::Montgomery => {
[INFO] [stdout]    |             ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]   --> src/key_exchange/ecdh.rs:55:13
[INFO] [stdout]    |
[INFO] [stdout] 55 |             ECPCurveShape::ShortWeierstrass => {
[INFO] [stdout]    |             ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]    --> src/utils/ecc.rs:101:13
[INFO] [stdout]     |
[INFO] [stdout] 101 |             ECPCurveShape::Montgomery => montgomery_ladder::multiply(&self.group, m, p),
[INFO] [stdout]     |             ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]    --> src/utils/ecc.rs:102:13
[INFO] [stdout]     |
[INFO] [stdout] 102 |             ECPCurveShape::ShortWeierstrass => comb_method::core_multiplication(&mut self.group, p, m, &mut rng)
[INFO] [stdout]     |             ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPSupportedCurves`
[INFO] [stdout]   --> src/key_exchange/ecdh.rs:92:32
[INFO] [stdout]    |
[INFO] [stdout] 92 |         let mut dh = ECDH::new(ECPSupportedCurves::BP256R1);
[INFO] [stdout]    |                                ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `ECPSupportedCurves`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPSupportedCurves`
[INFO] [stdout]   --> src/key_exchange/ecdh.rs:95:33
[INFO] [stdout]    |
[INFO] [stdout] 95 |         let mut dh2 = ECDH::new(ECPSupportedCurves::BP256R1);
[INFO] [stdout]    |                                 ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `ECPSupportedCurves`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPSupportedCurves`
[INFO] [stdout]    --> src/key_exchange/ecdh.rs:111:32
[INFO] [stdout]     |
[INFO] [stdout] 111 |         let mut dh = ECDH::new(ECPSupportedCurves::Curve25519);
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `ECPSupportedCurves`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPSupportedCurves`
[INFO] [stdout]    --> src/key_exchange/ecdh.rs:114:33
[INFO] [stdout]     |
[INFO] [stdout] 114 |         let mut dh2 = ECDH::new(ECPSupportedCurves::Curve25519);
[INFO] [stdout]     |                                 ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `ECPSupportedCurves`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]    --> src/utils/ecc.rs:118:13
[INFO] [stdout]     |
[INFO] [stdout] 118 |             ECPCurveShape::Montgomery => montgomery_ladder::add_points(&self.group, p, r, &gx),
[INFO] [stdout]     |             ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]    --> src/utils/ecc.rs:119:13
[INFO] [stdout]     |
[INFO] [stdout] 119 |             ECPCurveShape::ShortWeierstrass => jacobian_coords::add(&self.group, p, &mut r_clone)
[INFO] [stdout]     |             ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPGroup`
[INFO] [stdout]   --> src/utils/ecc.rs:50:20
[INFO] [stdout]    |
[INFO] [stdout] 50 |             group: ECPGroup::new(curve),
[INFO] [stdout]    |                    ^^^^^^^^ use of undeclared type or module `ECPGroup`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPPoint`
[INFO] [stdout]   --> src/utils/ecc.rs:52:16
[INFO] [stdout]    |
[INFO] [stdout] 52 |             q: ECPPoint::new( &BigInt::zero(), Some(BigInt::zero()) )
[INFO] [stdout]    |                ^^^^^^^^ use of undeclared type or module `ECPPoint`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]   --> src/utils/ecc.rs:85:13
[INFO] [stdout]    |
[INFO] [stdout] 85 |             ECPCurveShape::Montgomery => montgomery_ladder::multiply(&self.group, &self.d, &p_point),
[INFO] [stdout]    |             ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]   --> src/utils/ecc.rs:86:13
[INFO] [stdout]    |
[INFO] [stdout] 86 |             ECPCurveShape::ShortWeierstrass => comb_method::multiply(&mut self.group, &self.d, &p_point, rng)
[INFO] [stdout]    |             ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]    --> src/utils/ecc.rs:145:27
[INFO] [stdout]     |
[INFO] [stdout] 145 |         if curve_shape == ECPCurveShape::Montgomery {
[INFO] [stdout]     |                           ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `EndianOrdering`
[INFO] [stdout]    --> src/utils/ecc.rs:146:56
[INFO] [stdout]     |
[INFO] [stdout] 146 |             let d_bit_vec = biguint_to_bitvec(&self.d, EndianOrdering::Little);
[INFO] [stdout]     |                                                        ^^^^^^^^^^^^^^ use of undeclared type or module `EndianOrdering`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]    --> src/utils/ecc.rs:101:13
[INFO] [stdout]     |
[INFO] [stdout] 101 |             ECPCurveShape::Montgomery => montgomery_ladder::multiply(&self.group, m, p),
[INFO] [stdout]     |             ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]    --> src/utils/ecc.rs:102:13
[INFO] [stdout]     |
[INFO] [stdout] 102 |             ECPCurveShape::ShortWeierstrass => comb_method::core_multiplication(&mut self.group, p, m, &mut rng)
[INFO] [stdout]     |             ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]    --> src/utils/ecc.rs:118:13
[INFO] [stdout]     |
[INFO] [stdout] 118 |             ECPCurveShape::Montgomery => montgomery_ladder::add_points(&self.group, p, r, &gx),
[INFO] [stdout]     |             ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]    --> src/utils/ecc.rs:183:13
[INFO] [stdout]     |
[INFO] [stdout] 183 |             ECPCurveShape::Montgomery => {
[INFO] [stdout]     |             ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]    --> src/utils/ecc.rs:191:13
[INFO] [stdout]     |
[INFO] [stdout] 191 |             ECPCurveShape::ShortWeierstrass => self.check_weierstrass_public_key(point)
[INFO] [stdout]     |             ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]    --> src/utils/ecc.rs:203:13
[INFO] [stdout]     |
[INFO] [stdout] 203 |             ECPCurveShape::Montgomery => {
[INFO] [stdout]     |             ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]    --> src/utils/ecc.rs:119:13
[INFO] [stdout]     |
[INFO] [stdout] 119 |             ECPCurveShape::ShortWeierstrass => jacobian_coords::add(&self.group, p, &mut r_clone)
[INFO] [stdout]     |             ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `EndianOrdering`
[INFO] [stdout]    --> src/utils/ecc.rs:210:59
[INFO] [stdout]     |
[INFO] [stdout] 210 |                 let mut d_bit_vec = biguint_to_bitvec(&d, EndianOrdering::Little);
[INFO] [stdout]     |                                                           ^^^^^^^^^^^^^^ use of undeclared type or module `EndianOrdering`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]    --> src/utils/ecc.rs:145:27
[INFO] [stdout]     |
[INFO] [stdout] 145 |         if curve_shape == ECPCurveShape::Montgomery {
[INFO] [stdout]     |                           ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `EndianOrdering`
[INFO] [stdout]    --> src/utils/ecc.rs:216:55
[INFO] [stdout]     |
[INFO] [stdout] 216 |                     d_bit_vec = biguint_to_bitvec(&d, EndianOrdering::Little); 
[INFO] [stdout]     |                                                       ^^^^^^^^^^^^^^ use of undeclared type or module `EndianOrdering`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `EndianOrdering`
[INFO] [stdout]    --> src/utils/ecc.rs:146:56
[INFO] [stdout]     |
[INFO] [stdout] 146 |             let d_bit_vec = biguint_to_bitvec(&self.d, EndianOrdering::Little);
[INFO] [stdout]     |                                                        ^^^^^^^^^^^^^^ use of undeclared type or module `EndianOrdering`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `EndianOrdering`
[INFO] [stdout]    --> src/utils/ecc.rs:227:54
[INFO] [stdout]     |
[INFO] [stdout] 227 |                 return bitvec_to_biguint(&d_bit_vec, EndianOrdering::Little);
[INFO] [stdout]     |                                                      ^^^^^^^^^^^^^^ use of undeclared type or module `EndianOrdering`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]    --> src/utils/ecc.rs:230:13
[INFO] [stdout]     |
[INFO] [stdout] 230 |             ECPCurveShape::ShortWeierstrass => {
[INFO] [stdout]     |             ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]    --> src/utils/ecc.rs:183:13
[INFO] [stdout]     |
[INFO] [stdout] 183 |             ECPCurveShape::Montgomery => {
[INFO] [stdout]     |             ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]    --> src/utils/ecc.rs:191:13
[INFO] [stdout]     |
[INFO] [stdout] 191 |             ECPCurveShape::ShortWeierstrass => self.check_weierstrass_public_key(point)
[INFO] [stdout]     |             ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]    --> src/utils/ecc.rs:203:13
[INFO] [stdout]     |
[INFO] [stdout] 203 |             ECPCurveShape::Montgomery => {
[INFO] [stdout]     |             ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `EndianOrdering`
[INFO] [stdout]    --> src/utils/ecc.rs:210:59
[INFO] [stdout]     |
[INFO] [stdout] 210 |                 let mut d_bit_vec = biguint_to_bitvec(&d, EndianOrdering::Little);
[INFO] [stdout]     |                                                           ^^^^^^^^^^^^^^ use of undeclared type or module `EndianOrdering`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPGroup` in this scope
[INFO] [stdout]   --> src/key_exchange/ecdh.rs:10:16
[INFO] [stdout]    |
[INFO] [stdout] 10 |     pub group: ECPGroup,
[INFO] [stdout]    |                ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `EndianOrdering`
[INFO] [stdout]    --> src/utils/ecc.rs:216:55
[INFO] [stdout]     |
[INFO] [stdout] 216 |                     d_bit_vec = biguint_to_bitvec(&d, EndianOrdering::Little); 
[INFO] [stdout]     |                                                       ^^^^^^^^^^^^^^ use of undeclared type or module `EndianOrdering`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPPoint` in this scope
[INFO] [stdout]   --> src/key_exchange/ecdh.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 11 |     pub q: ECPPoint,                // our public value (public key) 
[INFO] [stdout]    |            ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPPoint` in this scope
[INFO] [stdout]   --> src/key_exchange/ecdh.rs:13:24
[INFO] [stdout]    |
[INFO] [stdout] 9  | pub struct ECDH {
[INFO] [stdout]    |                - help: you might be missing a type parameter: `<ECPPoint>`
[INFO] [stdout] ...
[INFO] [stdout] 13 |     pub peer_q: Option<ECPPoint>,   // peer's public value (public key)
[INFO] [stdout]    |                        ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPKeypair` in this scope
[INFO] [stdout]   --> src/key_exchange/ecdh.rs:14:14
[INFO] [stdout]    |
[INFO] [stdout] 14 |     keypair: ECPKeypair             // Generated keypair, for reference (private value stored here)
[INFO] [stdout]    |              ^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 1  | use crate::utils::ecc::ECPKeypair;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `EndianOrdering`
[INFO] [stdout]    --> src/utils/ecc.rs:227:54
[INFO] [stdout]     |
[INFO] [stdout] 227 |                 return bitvec_to_biguint(&d_bit_vec, EndianOrdering::Little);
[INFO] [stdout]     |                                                      ^^^^^^^^^^^^^^ use of undeclared type or module `EndianOrdering`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPCurveShape`
[INFO] [stdout]    --> src/utils/ecc.rs:230:13
[INFO] [stdout]     |
[INFO] [stdout] 230 |             ECPCurveShape::ShortWeierstrass => {
[INFO] [stdout]     |             ^^^^^^^^^^^^^ use of undeclared type or module `ECPCurveShape`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPSupportedCurves` in this scope
[INFO] [stdout]   --> src/key_exchange/ecdh.rs:26:23
[INFO] [stdout]    |
[INFO] [stdout] 26 |     pub fn new(curve: ECPSupportedCurves) -> Self {
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPKeypair`
[INFO] [stdout]   --> src/key_exchange/ecdh.rs:29:23
[INFO] [stdout]    |
[INFO] [stdout] 29 |         let keypair = ECPKeypair::new(curve).setup(&mut rng);
[INFO] [stdout]    |                       ^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 1  | use crate::utils::ecc::ECPKeypair;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPGroup` in this scope
[INFO] [stdout]   --> src/utils/ecc.rs:22:16
[INFO] [stdout]    |
[INFO] [stdout] 22 |     pub group: ECPGroup,    // elliptic curve and base point
[INFO] [stdout]    |                ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPSupportedCurves`
[INFO] [stdout]    --> src/utils/ecc.rs:315:35
[INFO] [stdout]     |
[INFO] [stdout] 315 |         let ecc = ECPKeypair::new(ECPSupportedCurves::BP256R1).setup(&mut rng);
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `ECPSupportedCurves`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPPoint` in this scope
[INFO] [stdout]   --> src/utils/ecc.rs:24:12
[INFO] [stdout]    |
[INFO] [stdout] 24 |     pub q: ECPPoint         // public value
[INFO] [stdout]    |            ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPSupportedCurves` in this scope
[INFO] [stdout]   --> src/utils/ecc.rs:48:23
[INFO] [stdout]    |
[INFO] [stdout] 48 |     pub fn new(curve: ECPSupportedCurves) -> Self {
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPPoint` in this scope
[INFO] [stdout]   --> src/utils/ecc.rs:80:52
[INFO] [stdout]    |
[INFO] [stdout] 80 |     pub fn multiply(&mut self, rng: &mut OsRng) -> ECPPoint {
[INFO] [stdout]    |                                                    ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPPoint` in this scope
[INFO] [stdout]   --> src/utils/ecc.rs:96:42
[INFO] [stdout]    |
[INFO] [stdout] 96 |     pub fn multiply_point(&mut self, p: &ECPPoint, m: &BigUint) -> ECPPoint {
[INFO] [stdout]    |                                          ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPSupportedCurves`
[INFO] [stdout]    --> src/utils/ecc.rs:321:35
[INFO] [stdout]     |
[INFO] [stdout] 321 |         let ecc = ECPKeypair::new(ECPSupportedCurves::BP384R1).setup(&mut rng);
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `ECPSupportedCurves`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPPoint` in this scope
[INFO] [stdout]   --> src/utils/ecc.rs:96:68
[INFO] [stdout]    |
[INFO] [stdout] 96 |     pub fn multiply_point(&mut self, p: &ECPPoint, m: &BigUint) -> ECPPoint {
[INFO] [stdout]    |                                                                    ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPPoint` in this scope
[INFO] [stdout]    --> src/utils/ecc.rs:112:38
[INFO] [stdout]     |
[INFO] [stdout] 112 |     pub fn add_points(&mut self, p: &ECPPoint, r: &ECPPoint) -> ECPPoint {
[INFO] [stdout]     |                                      ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPPoint` in this scope
[INFO] [stdout]    --> src/utils/ecc.rs:112:52
[INFO] [stdout]     |
[INFO] [stdout] 112 |     pub fn add_points(&mut self, p: &ECPPoint, r: &ECPPoint) -> ECPPoint {
[INFO] [stdout]     |                                                    ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPPoint` in this scope
[INFO] [stdout]    --> src/utils/ecc.rs:112:65
[INFO] [stdout]     |
[INFO] [stdout] 112 |     pub fn add_points(&mut self, p: &ECPPoint, r: &ECPPoint) -> ECPPoint {
[INFO] [stdout]     |                                                                 ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPPoint` in this scope
[INFO] [stdout]    --> src/utils/ecc.rs:128:49
[INFO] [stdout]     |
[INFO] [stdout] 128 |     fn check_public_private_keys(&self, point: &ECPPoint) -> () {
[INFO] [stdout]     |                                                 ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `biguint_to_bitvec` in this scope
[INFO] [stdout]    --> src/utils/ecc.rs:146:29
[INFO] [stdout]     |
[INFO] [stdout] 146 |             let d_bit_vec = biguint_to_bitvec(&self.d, EndianOrdering::Little);
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPPoint` in this scope
[INFO] [stdout]    --> src/utils/ecc.rs:174:44
[INFO] [stdout]     |
[INFO] [stdout] 174 |     pub fn check_public_key(&self, point: &ECPPoint) -> (bool, &'static str) {
[INFO] [stdout]     |                                            ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `biguint_to_bitvec` in this scope
[INFO] [stdout]    --> src/utils/ecc.rs:210:37
[INFO] [stdout]     |
[INFO] [stdout] 210 |                 let mut d_bit_vec = biguint_to_bitvec(&d, EndianOrdering::Little);
[INFO] [stdout]     |                                     ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `biguint_to_bitvec` in this scope
[INFO] [stdout]    --> src/utils/ecc.rs:216:33
[INFO] [stdout]     |
[INFO] [stdout] 216 |                     d_bit_vec = biguint_to_bitvec(&d, EndianOrdering::Little); 
[INFO] [stdout]     |                                 ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `bitvec_to_biguint` in this scope
[INFO] [stdout]    --> src/utils/ecc.rs:227:24
[INFO] [stdout]     |
[INFO] [stdout] 227 |                 return bitvec_to_biguint(&d_bit_vec, EndianOrdering::Little);
[INFO] [stdout]     |                        ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPPoint` in this scope
[INFO] [stdout]    --> src/utils/ecc.rs:268:52
[INFO] [stdout]     |
[INFO] [stdout] 268 |     fn check_weierstrass_public_key(&self, point: &ECPPoint) -> (bool, &'static str) {
[INFO] [stdout]     |                                                    ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPSupportedCurves`
[INFO] [stdout]    --> src/utils/ecc.rs:327:35
[INFO] [stdout]     |
[INFO] [stdout] 327 |         let ecc = ECPKeypair::new(ECPSupportedCurves::BP521R1).setup(&mut rng);
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `ECPSupportedCurves`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]   --> src/utils/ecc.rs:32:30
[INFO] [stdout]    |
[INFO] [stdout] 32 | const MAX_BYTE_SIZE: usize = ( ( 521 + 7 ) / 8 );
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]   --> src/utils/ecc.rs:33:30
[INFO] [stdout]    |
[INFO] [stdout] 33 | const MAX_POINT_LEN: usize = ( 2 * 521 + 1 );
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPSupportedCurves`
[INFO] [stdout]    --> src/utils/ecc.rs:333:35
[INFO] [stdout]     |
[INFO] [stdout] 333 |         let ecc = ECPKeypair::new(ECPSupportedCurves::Curve25519).setup(&mut rng);
[INFO] [stdout]     |                                   ^^^^^^^^^^^^^^^^^^ use of undeclared type or module `ECPSupportedCurves`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `DiffieHellman`
[INFO] [stdout]    --> src/key_exchange/diffie_hellman.rs:230:22
[INFO] [stdout]     |
[INFO] [stdout] 230 |         let mut dh = DiffieHellman::new().setup(16);
[INFO] [stdout]     |                      ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 224 |     use crate::key_exchange::diffie_hellman::DiffieHellman;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `DiffieHellman`
[INFO] [stdout]    --> src/key_exchange/diffie_hellman.rs:234:23
[INFO] [stdout]     |
[INFO] [stdout] 234 |         let mut dh2 = DiffieHellman::new_from_peer(&p, &g, &peer_gx).setup(16);
[INFO] [stdout]     |                       ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 224 |     use crate::key_exchange::diffie_hellman::DiffieHellman;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPGroup` in this scope
[INFO] [stdout]   --> src/key_exchange/ecdh.rs:10:16
[INFO] [stdout]    |
[INFO] [stdout] 10 |     pub group: ECPGroup,
[INFO] [stdout]    |                ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPPoint` in this scope
[INFO] [stdout]   --> src/key_exchange/ecdh.rs:11:12
[INFO] [stdout]    |
[INFO] [stdout] 11 |     pub q: ECPPoint,                // our public value (public key) 
[INFO] [stdout]    |            ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPPoint` in this scope
[INFO] [stdout]   --> src/key_exchange/ecdh.rs:13:24
[INFO] [stdout]    |
[INFO] [stdout] 9  | pub struct ECDH {
[INFO] [stdout]    |                - help: you might be missing a type parameter: `<ECPPoint>`
[INFO] [stdout] ...
[INFO] [stdout] 13 |     pub peer_q: Option<ECPPoint>,   // peer's public value (public key)
[INFO] [stdout]    |                        ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPKeypair` in this scope
[INFO] [stdout]   --> src/key_exchange/ecdh.rs:14:14
[INFO] [stdout]    |
[INFO] [stdout] 14 |     keypair: ECPKeypair             // Generated keypair, for reference (private value stored here)
[INFO] [stdout]    |              ^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 1  | use crate::utils::ecc::ECPKeypair;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPSupportedCurves` in this scope
[INFO] [stdout]   --> src/key_exchange/ecdh.rs:26:23
[INFO] [stdout]    |
[INFO] [stdout] 26 |     pub fn new(curve: ECPSupportedCurves) -> Self {
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPKeypair`
[INFO] [stdout]   --> src/key_exchange/ecdh.rs:29:23
[INFO] [stdout]    |
[INFO] [stdout] 29 |         let keypair = ECPKeypair::new(curve).setup(&mut rng);
[INFO] [stdout]    |                       ^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 1  | use crate::utils::ecc::ECPKeypair;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECDH`
[INFO] [stdout]   --> src/key_exchange/ecdh.rs:92:22
[INFO] [stdout]    |
[INFO] [stdout] 92 |         let mut dh = ECDH::new(ECPSupportedCurves::BP256R1);
[INFO] [stdout]    |                      ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 84 |     use crate::key_exchange::ecdh::ECDH;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECDH`
[INFO] [stdout]   --> src/key_exchange/ecdh.rs:95:23
[INFO] [stdout]    |
[INFO] [stdout] 95 |         let mut dh2 = ECDH::new(ECPSupportedCurves::BP256R1);
[INFO] [stdout]    |                       ^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 84 |     use crate::key_exchange::ecdh::ECDH;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECDH`
[INFO] [stdout]    --> src/key_exchange/ecdh.rs:111:22
[INFO] [stdout]     |
[INFO] [stdout] 111 |         let mut dh = ECDH::new(ECPSupportedCurves::Curve25519);
[INFO] [stdout]     |                      ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 84  |     use crate::key_exchange::ecdh::ECDH;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECDH`
[INFO] [stdout]    --> src/key_exchange/ecdh.rs:114:23
[INFO] [stdout]     |
[INFO] [stdout] 114 |         let mut dh2 = ECDH::new(ECPSupportedCurves::Curve25519);
[INFO] [stdout]     |                       ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 84  |     use crate::key_exchange::ecdh::ECDH;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPGroup` in this scope
[INFO] [stdout]   --> src/utils/ecc.rs:22:16
[INFO] [stdout]    |
[INFO] [stdout] 22 |     pub group: ECPGroup,    // elliptic curve and base point
[INFO] [stdout]    |                ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPPoint` in this scope
[INFO] [stdout]   --> src/utils/ecc.rs:24:12
[INFO] [stdout]    |
[INFO] [stdout] 24 |     pub q: ECPPoint         // public value
[INFO] [stdout]    |            ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPSupportedCurves` in this scope
[INFO] [stdout]   --> src/utils/ecc.rs:48:23
[INFO] [stdout]    |
[INFO] [stdout] 48 |     pub fn new(curve: ECPSupportedCurves) -> Self {
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPPoint` in this scope
[INFO] [stdout]   --> src/utils/ecc.rs:80:52
[INFO] [stdout]    |
[INFO] [stdout] 80 |     pub fn multiply(&mut self, rng: &mut OsRng) -> ECPPoint {
[INFO] [stdout]    |                                                    ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPPoint` in this scope
[INFO] [stdout]   --> src/utils/ecc.rs:96:42
[INFO] [stdout]    |
[INFO] [stdout] 96 |     pub fn multiply_point(&mut self, p: &ECPPoint, m: &BigUint) -> ECPPoint {
[INFO] [stdout]    |                                          ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPPoint` in this scope
[INFO] [stdout]   --> src/utils/ecc.rs:96:68
[INFO] [stdout]    |
[INFO] [stdout] 96 |     pub fn multiply_point(&mut self, p: &ECPPoint, m: &BigUint) -> ECPPoint {
[INFO] [stdout]    |                                                                    ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPPoint` in this scope
[INFO] [stdout]    --> src/utils/ecc.rs:112:38
[INFO] [stdout]     |
[INFO] [stdout] 112 |     pub fn add_points(&mut self, p: &ECPPoint, r: &ECPPoint) -> ECPPoint {
[INFO] [stdout]     |                                      ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPPoint` in this scope
[INFO] [stdout]    --> src/utils/ecc.rs:112:52
[INFO] [stdout]     |
[INFO] [stdout] 112 |     pub fn add_points(&mut self, p: &ECPPoint, r: &ECPPoint) -> ECPPoint {
[INFO] [stdout]     |                                                    ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPPoint` in this scope
[INFO] [stdout]    --> src/utils/ecc.rs:112:65
[INFO] [stdout]     |
[INFO] [stdout] 112 |     pub fn add_points(&mut self, p: &ECPPoint, r: &ECPPoint) -> ECPPoint {
[INFO] [stdout]     |                                                                 ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPPoint` in this scope
[INFO] [stdout]    --> src/utils/ecc.rs:128:49
[INFO] [stdout]     |
[INFO] [stdout] 128 |     fn check_public_private_keys(&self, point: &ECPPoint) -> () {
[INFO] [stdout]     |                                                 ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `biguint_to_bitvec` in this scope
[INFO] [stdout]    --> src/utils/ecc.rs:146:29
[INFO] [stdout]     |
[INFO] [stdout] 146 |             let d_bit_vec = biguint_to_bitvec(&self.d, EndianOrdering::Little);
[INFO] [stdout]     |                             ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPPoint` in this scope
[INFO] [stdout]    --> src/utils/ecc.rs:174:44
[INFO] [stdout]     |
[INFO] [stdout] 174 |     pub fn check_public_key(&self, point: &ECPPoint) -> (bool, &'static str) {
[INFO] [stdout]     |                                            ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `biguint_to_bitvec` in this scope
[INFO] [stdout]    --> src/utils/ecc.rs:210:37
[INFO] [stdout]     |
[INFO] [stdout] 210 |                 let mut d_bit_vec = biguint_to_bitvec(&d, EndianOrdering::Little);
[INFO] [stdout]     |                                     ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `biguint_to_bitvec` in this scope
[INFO] [stdout]    --> src/utils/ecc.rs:216:33
[INFO] [stdout]     |
[INFO] [stdout] 216 |                     d_bit_vec = biguint_to_bitvec(&d, EndianOrdering::Little); 
[INFO] [stdout]     |                                 ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `bitvec_to_biguint` in this scope
[INFO] [stdout]    --> src/utils/ecc.rs:227:24
[INFO] [stdout]     |
[INFO] [stdout] 227 |                 return bitvec_to_biguint(&d_bit_vec, EndianOrdering::Little);
[INFO] [stdout]     |                        ^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ECPPoint` in this scope
[INFO] [stdout]    --> src/utils/ecc.rs:268:52
[INFO] [stdout]     |
[INFO] [stdout] 268 |     fn check_weierstrass_public_key(&self, point: &ECPPoint) -> (bool, &'static str) {
[INFO] [stdout]     |                                                    ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPKeypair`
[INFO] [stdout]    --> src/utils/ecc.rs:315:19
[INFO] [stdout]     |
[INFO] [stdout] 315 |         let ecc = ECPKeypair::new(ECPSupportedCurves::BP256R1).setup(&mut rng);
[INFO] [stdout]     |                   ^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 308 |     use crate::utils::ecc::ECPKeypair;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPKeypair`
[INFO] [stdout]    --> src/utils/ecc.rs:321:19
[INFO] [stdout]     |
[INFO] [stdout] 321 |         let ecc = ECPKeypair::new(ECPSupportedCurves::BP384R1).setup(&mut rng);
[INFO] [stdout]     |                   ^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 308 |     use crate::utils::ecc::ECPKeypair;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPKeypair`
[INFO] [stdout]    --> src/utils/ecc.rs:327:19
[INFO] [stdout]     |
[INFO] [stdout] 327 |         let ecc = ECPKeypair::new(ECPSupportedCurves::BP521R1).setup(&mut rng);
[INFO] [stdout]     |                   ^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 308 |     use crate::utils::ecc::ECPKeypair;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ECPKeypair`
[INFO] [stdout]    --> src/utils/ecc.rs:333:19
[INFO] [stdout]     |
[INFO] [stdout] 333 |         let ecc = ECPKeypair::new(ECPSupportedCurves::Curve25519).setup(&mut rng);
[INFO] [stdout]     |                   ^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]     |
[INFO] [stdout] 308 |     use crate::utils::ecc::ECPKeypair;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]   --> src/utils/ecc.rs:32:30
[INFO] [stdout]    |
[INFO] [stdout] 32 | const MAX_BYTE_SIZE: usize = ( ( 521 + 7 ) / 8 );
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]   --> src/utils/ecc.rs:33:30
[INFO] [stdout]    |
[INFO] [stdout] 33 | const MAX_POINT_LEN: usize = ( 2 * 521 + 1 );
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 71 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `cryptofun`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error: aborting due to 48 previous errors; 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0432, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0412`.
[INFO] [stdout] 
[INFO] [stderr] error: build failed
[INFO] running `Command { std: "docker" "inspect" "048218c52d5cf729af49fea29325823586d5df25413b784a5ae5237a0484bdbe", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "048218c52d5cf729af49fea29325823586d5df25413b784a5ae5237a0484bdbe", kill_on_drop: false }`
[INFO] [stdout] 048218c52d5cf729af49fea29325823586d5df25413b784a5ae5237a0484bdbe
